<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/layer/1.8.5/extend/layer.ext.js"></script>
<body>

  {{$user}}
    <table>
      <tr>
        <td>Id</td>
        <td>用户名</td>
        <td>密码</td>
        <td>操作</td>
      </tr>

      @foreach($user as $v)
      <tr>
        <td>{{ $v->id }}</td>
        <td>{{ $v->username }}</td>
        <td>{{ $v->password }}</td>
        <td><a href="/user/edit/{{$v->id}}" >修改</a></td>
        <td><a href="">添加</a></td>
      </tr>
      @endforeach

    </table>
</body>

<style>
  table,tr,td {
    border: 1px black solid;
  }
</style>
</html>